/** COPYRIGHT(C) 2008. Loc Phan. All Rights Reserved.
A class that store info of a student
@author Loc Phan
@version 1.01 2008-11-26
*/
package edu.sjsu.cs.phan.hw6;

public class Student extends Person
{
   /**Constructs a student
    * 
    * @param name Name
    * @param birthyear Year of Birth
    * @param Amajor Major
    */
   public Student(String name, int birthyear,String Amajor)
   {
      super(name, birthyear);
      Major = Amajor;
   }
   /**Returns Major
    * 
    * @return Major
    */
   public String getMajor()
   {
      return Major;
   }
   /**Returns a greating string
    * 
    */
   public String toString()
   {
      return "My name is " + super.getName()+" and my major is "+Major;
   }
   private String Major;

}
